Rebuild files if target directory is corrupt
authorAlex Crichton <alex@alexcrichton.com>
Mon, 8 Dec 2014 22:50:16 +0000 (14:50 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 8 Dec 2014 22:50:16 +0000 (14:50 -0800)
commit523f507df8806df25affc1f81ba32f29e2436347
tree72a7b5466a5e75559d1a1ded72f416a4069f9620
parent0f6667ca0631fe72d1e15759c845f0197e3dfe19
Rebuild files if target directory is corrupt

If manual modifications have been made or if cargo/rustc died for some sort of
error, then we don't consider a target as being fresh. If any of the files
output by a target don't end up existing in the target directory (even if the
fingerprint says they do), then we consider the target not fresh.

cc #986
src/cargo/ops/cargo_rustc/fingerprint.rs
tests/test_cargo_compile.rs